public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.display();
        System.out.println(myArraylist.indexOf(3));
        System.out.println("===============");
        myArraylist.clear();
        myArraylist.display();

    }
}
